import { createVNode, getCurrentInstance, render } from 'vue'
import notifyComponent from '/@/components/shop/panel/panel.vue'

/**
 * 面板
 */
const usePanel = () => {
    const { appContext } = getCurrentInstance()!
    const container = document.createElement('div')
    const vm = createVNode(notifyComponent)
    vm.appContext = appContext
    render(vm, container)
    document.body.appendChild(container.firstElementChild!)
}

export default usePanel
